package org.example.spring.configuration;

import org.elasticsearch.client.RestHighLevelClient;
import org.example.es.configuration.EsConfiguration;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.elasticsearch.config.AbstractElasticsearchConfiguration;

/**
 * @author Tang
 * @classname ElasticsearchConfiguration
 * @description [  ]
 * @date 2023/5/2 13:44
 */
@Configuration
public class ElasticsearchConfiguration extends AbstractElasticsearchConfiguration {

    @Override
    public RestHighLevelClient elasticsearchClient() {
        return new EsConfiguration().restHighLevelClient();
    }

}
